projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfc536c
)
xenpm: Fix ia64 build
author
Keir Fraser
<keir.fraser@citrix.com>
Wed, 10 Feb 2010 09:06:59 +0000
(09:06 +0000)
committer
Keir Fraser
<keir.fraser@citrix.com>
Wed, 10 Feb 2010 09:06:59 +0000
(09:06 +0000)
cpuid_eax() is x86-specific.
Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
xen/drivers/cpufreq/cpufreq_ondemand.c
patch
|
blob
|
history
diff --git
a/xen/drivers/cpufreq/cpufreq_ondemand.c
b/xen/drivers/cpufreq/cpufreq_ondemand.c
index 799a377f539eda5cd90b4a926ab0763d65e0b4cd..c30e8346dbf9269848820bfd00b044a9657a2085 100644
(file)
--- a/
xen/drivers/cpufreq/cpufreq_ondemand.c
+++ b/
xen/drivers/cpufreq/cpufreq_ondemand.c
@@
-345,11
+345,13
@@
struct cpufreq_governor cpufreq_gov_dbs = {
static int __init cpufreq_gov_dbs_init(void)
{
+#ifdef CONFIG_X86
unsigned int eax = cpuid_eax(6);
if ( eax & 0x2 ) {
turbo_detected = 1;
printk(XENLOG_INFO "Turbo Mode detected!\n");
}
+#endif
return cpufreq_register_governor(&cpufreq_gov_dbs);
}
__initcall(cpufreq_gov_dbs_init);